//
//  MyCollection.m
//  庐山通
//
//  Created by zcj on 15-10-24.
//  Copyright (c) 2015年 郑朝军. All rights reserved.
//

#import "MyCollection.h"
#import "FindView.h"
#import "FindModelFrame.h"

@interface MyCollection ()
@property (nonatomic,weak)FindView * findView;
@end

@implementation MyCollection

+(instancetype)MyCollection:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString * ID = @"HGFindCellName";
    
    MyCollection * cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath];
    return cell;
}
// 设置数据
- (void)setFindModelFrame:(FindModelFrame *)findModelFrame
{
    self.findView.findModelFrame = findModelFrame;
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self addView];
        // Initialization code
    }
    return self;
}
- (void)addView
{
    FindView * findView = [[FindView alloc]init];
    findView.backgroundColor = [UIColor redColor];
    [self addSubview:findView];
    self.findView = findView;
}
@end
